package org.dromara.mall.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;
import org.dromara.mall.domain.MallGoodsSpec;
import org.dromara.mall.domain.MallGoodsSpecVal;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 商品规格对象 mall_goods_spec
 *
 * @author Mr Lei
 * @date 2024-05-20
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = MallGoodsSpec.class)
public class MallGoodsSpecVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /* id */
    @ExcelProperty(value="ID")
    private Long id;

    /* 规格名称 */
    @ExcelProperty(value="规格名称")
    private String name;

    /*商品分类*/
//    private Long cateId;
//    private String cateName;

    /*商品id*/
    private Long goodsId;
//    @TableField(exist = false)
//    private String goodsName;

    /*商品属性值*/
    @TableField(exist = false)
    private List<MallGoodsSpecVal> specValues;

}
